package io.nutz.nutzsite.module.sys.controllers;

import javax.servlet.http.HttpServletRequest;

import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;

/**
 * @author xici
 * for www
 */
@At("/")
@IocBean
public class WwwController {
	@At({"/", "/index"})
    @Ok("re")
    public String index(HttpServletRequest req) {
        return "th:/www/index.html";
    }
	
	@At({"/about_us"})
    @Ok("re")
    public String aboutus(HttpServletRequest req) {
        return "th:/www/about_us.html";
    }
	
	@At({"/contacts"})
    @Ok("re")
    public String contacts(HttpServletRequest req) {
        return "th:/www/contacts.html";
    }
	
	@At({"/products"})
    @Ok("re")
    public String products(HttpServletRequest req) {
        return "th:/www/products.html";
    }
	
	@At({"/news"})
    @Ok("re")
    public String news(HttpServletRequest req) {
        return "th:/www/news.html";
    }
	
	
	@At({"/footer"})
    @Ok("re")
    public String footer(HttpServletRequest req) {
        return "th:/www/footer.html";
    }
	
	@At({"/header"})
    @Ok("re")
    public String header(HttpServletRequest req) {
        return "th:/www/header.html";
    }
}
